let _util = require('util/util.js');

let login = {
    login: function (param) {
        _util.request({
            url: 'http://192.168.103.107:8080/login',
            // url: _util.getServerUrl() + '/login/',
            method: 'POST',
            data: param.data,
            success: function () {
                typeof param.success === 'function' ? param.success() : '';
            },
            error: function () {
                typeof param.success === 'function' ? param.error() : '';
            }
        })
    }
}

module.exports = login;